package com.ruoyi.ora.mapper;

import java.util.List;
import com.ruoyi.ora.domain.VoiceMemoir;
import org.apache.ibatis.annotations.Param;

/**
 * 录音回忆录Mapper接口
 * 
 * @author liuwp
 * @date 2025-04-10
 */
public interface VoiceMemoirMapper 
{
    /**
     * 查询录音回忆录
     * 
     * @param id 录音回忆录主键
     * @return 录音回忆录
     */
    public VoiceMemoir selectVoiceMemoirById(Long id);

    /**
     * 查询录音回忆录列表
     * 
     * @param voiceMemoir 录音回忆录
     * @return 录音回忆录集合
     */
    public List<VoiceMemoir> selectVoiceMemoirList(VoiceMemoir voiceMemoir);
    public List<VoiceMemoir> selectVoiceMemoirListCollection(VoiceMemoir voiceMemoir);
    public List<VoiceMemoir> selectVoiceMemoirListDeviceUser(VoiceMemoir voiceMemoir);

    /**
     * 可以业务主键查询一条录音回忆录
     *
     * @param voiceMemoir 录音回忆录
     * @return 录音回忆录集合
     */
    public VoiceMemoir selectOneVoiceMemoir(VoiceMemoir voiceMemoir);

    /**
     * 新增录音回忆录
     * 
     * @param voiceMemoir 录音回忆录
     * @return 结果
     */
    public int insertVoiceMemoir(VoiceMemoir voiceMemoir);

    /**
     * 修改录音回忆录
     * 
     * @param voiceMemoir 录音回忆录
     * @return 结果
     */
    public int updateVoiceMemoir(VoiceMemoir voiceMemoir);

    /**
     * 条件修改录音回忆录
     *
     * @param voiceMemoir 录音回忆录
     * @param voiceMemoir 录音回忆录条件
     * @return 结果
     */
    public int updateVoiceMemoirCondition(@Param("voiceMemoir") VoiceMemoir voiceMemoir, @Param("voiceMemoirCondition") VoiceMemoir voiceMemoirCondition);

    /**
     * 删除录音回忆录
     * 
     * @param id 录音回忆录主键
     * @return 结果
     */
    public int deleteVoiceMemoirById(Long id);

    /**
     * 条件删除录音回忆录
     *
     * @param voiceMemoir 录音回忆录
     * @return 结果
     */
    public int deleteVoiceMemoirByCondition(VoiceMemoir voiceMemoir);

    /**
     * 批量删除录音回忆录
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteVoiceMemoirByIds(Long[] ids);
}
